﻿using System.Collections.Generic;
using DAO;
using DTO;

namespace BUS
{
    public class MailServerBUS
    {
        public static List<MailServerDTO> getAll()
        {
            return MailServerDAO.getAll();
        }

        public static MailServerDTO getAlongCode(int maMail)
        {
            return MailServerDAO.getAlongCode(maMail);
        }

        public static void Insert(MailServerDTO _insert)
        {
            MailServerDAO.Insert(_insert);
        }

        public static void Delete(int maMail)
        {
            MailServerDAO.Delete(maMail);
        }

        public static void Update(MailServerDTO dto)
        {
            MailServerDAO.Update(dto);
        }
    }
}
